﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LogoPicker.aspx.cs" Inherits="Card.Web.LogoPicker" %>

<%@ Import Namespace="Card.Utility" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><%=this.AreaDesc %>  Logo Picker_<%=SiteName %></title>
    <link href="css/layout.css" rel="Stylesheet" type="text/css" />
    <link href="css/mp.css" rel="Stylesheet" type="text/css" />

    <script type="text/javascript">
        function resetLogo(width, height, logo) {
            window.parent.resetLogo('<%=this.ImageID %>', width, height, logo);
        }

        function close(width, height, logo) {
            resetLogo(width, height, logo);
            window.parent.closePicklogo();alert("d");
        }
    </script>

    <style type="text/css">
        body
        {
            background-color: #EEEEEE;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="logoPicker" class="clear-fix">
        <div class="clear-fix">
            <p>
                <%-- <a href="#">通用</a>|<a href="#">知名企业</a>--%>
                <asp:Repeater ID="rptLogoType" runat="server">
                    <HeaderTemplate>
                        <a href="LogoPicker.aspx?im=<%=this.ImageID %>">全部</a>|
                    </HeaderTemplate>
                    <ItemTemplate>
                        <a href="LogoPicker.aspx?im=<%#this.ImageID + "&t=" + Eval("LookupCode").ToString() %>">
                            <%# Eval("Value")%></a>|
                    </ItemTemplate>
                </asp:Repeater>
            </p>
        </div>
        <div class="clear-fix">
            <ul>
                <asp:Repeater ID="rptList" runat="server">
                    <ItemTemplate>
                        <li onclick="resetLogo('<%# Eval("WIDTH") %>','<%# Eval("HEIGHT") %>','<%# Eval("IMAGE") %>');">
                            <a href="javascript:void(0);">
                                <img border="0" style="width: 50px; height: 50px;" src='<%#  ImageUtilty.GetLogoPath(Eval("IMAGE").ToString())  %>'
                                    alt='<%# Eval("NAME") %>' />
                            </a></li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
        <div style="clear: both;">
        </div>
        <baf:UrlPager ID="pager" CssClass="pagination" runat="server" PageSize="20" MaxShowPages="8" />
    </div>
    </form>
</body>
</html>
